package com.zd.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author TSP
 * @Date 2021/8/23 15:15
 * @ClassName MyBatisPlusConfig
 * @Description ：
 */
@Configuration
public class MyBatisPlusConfig {
    @Bean
    public PaginationInterceptor paginationInterceptor() {
        //分页配置
        PaginationInterceptor paginationInterceptor = new PaginationInterceptor();
        return paginationInterceptor;
        //return new PaginationInterceptor();
    }
}
